package com.toocms.jinjuhang.ui.live_streaming

import com.toocms.jinjuhang.R
import com.toocms.jinjuhang.BR
import com.toocms.jinjuhang.databinding.FgtLiveStreamingBinding
import com.toocms.jinjuhang.ui.base.BaseFgt

class LiveStreamingFgt : BaseFgt<FgtLiveStreamingBinding, LiveStreamingModel>() {
    override fun onFragmentCreated() {
        topBar.removeAllLeftViews()
        topBar.setTitle(R.string.str_live_streaming_list)
    }

    override fun getLayoutResId() = R.layout.fgt_live_streaming

    override fun getVariableId() = BR.liveStreamingModel

    override fun viewObserver() {
        viewModel.stopRefreshOrLoadSingleLiveEvent.observe(this) {
            binding.refreshSrl.finishRefresh()
            binding.refreshSrl.finishLoadMore()
        }
    }
}